--应设计者要求，从ym那复制过来的，不直接引言是为了音频和其他服务器
local kpaI__dengyao = fk.CreateSkill {
  name = "kpaI__dengyao",
  tags = { Skill.Compulsory, Skill.Switch },
}

Fk:loadTranslationTable{
  ["kpaI__dengyao"] = "登遥",
  [":kpaI__dengyao"] = "转换技，锁定技，你摸牌时，阳：改为从牌堆底摸牌；阴：先卜算两倍数量张牌。",

  [":kpaI__dengyao_yang"] = "转换技，锁定技，你摸牌时，<font color=\"#E0DB2F\">阳：改为从牌堆底摸牌</font>；阴：先卜算两倍数量张牌。",
  [":kpaI__dengyao_yin"] = "转换技，锁定技，你摸牌时，阳：改为从牌堆底摸牌；<font color=\"#E0DB2F\">阴：先卜算两倍数量张牌</font>。",

  ["$kpaI__dengyao1"] = "粮草齐备，则军心无虞。",
  ["$kpaI__dengyao2"] = "军屯得粮，足可应辎重之需。",
}

kpaI__dengyao:addEffect(fk.BeforeDrawCard, {
  anim_type = "support",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(kpaI__dengyao.name) and target == player
  end,
  on_use = function(self, event, target, player, data)
    if player:getSwitchSkillState(kpaI__dengyao.name, true) == fk.SwitchYang then
      data.fromPlace = "bottom"
    else
      if data.num > 0 then
        player.room:askToGuanxing(player, { cards = player.room:getNCards(2 * data.num) })
      end
    end
  end,
})

return kpaI__dengyao
